package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_EmployeeGroup")
@NamedQueries({
	@NamedQuery(name="EmployeeGroup.findAll",query="SELECT eg FROM EmployeeGroup eg")
})
public class EmployeeGroup implements Serializable {
	@Id
	private Long employeeGroupID;
	private String name;
	private String description;
	private Long attendancePolicyID;
	private Long leaveSchemeID;
	
	@Transient
	private AttendancePolicy attendancePolicy;
	@Transient
	private LeaveScheme leaveScheme;
	
	public AttendancePolicy getAttendancePolicy() {
		return attendancePolicy;
	}
	public void setAttendancePolicy(AttendancePolicy attendancePolicy) {
		this.attendancePolicy = attendancePolicy;
	}
	public LeaveScheme getLeaveScheme() {
		return leaveScheme;
	}
	public void setLeaveScheme(LeaveScheme leaveScheme) {
		this.leaveScheme = leaveScheme;
	}
	public Long getEmployeeGroupID() {
		return employeeGroupID;
	}
	public void setEmployeeGroupID(Long employeeGroupID) {
		this.employeeGroupID = employeeGroupID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getAttendancePolicyID() {
		return attendancePolicyID;
	}
	public void setAttendancePolicyID(Long attendancePolicyId) {
		this.attendancePolicyID = attendancePolicyId;
	}
	public Long getLeaveSchemeID() {
		return leaveSchemeID;
	}
	public void setLeaveSchemeID(Long leaveSchemeID) {
		this.leaveSchemeID = leaveSchemeID;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
}
